package com.rds;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.util.StopWatch;

/**
 * 启动程序
 * @author rds
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RdsPmsApplication
{
    public static void main(String[] args)
    {
        StopWatch stopWatch = new StopWatch();
        stopWatch.start();
        //System.setProperty("spring.devtools.restart.enabled", "false");
        //插入下面的代码以解决es的netty冲突问题
        //System.setProperty("es.set.netty.runtime.available.processors", "false");
        //Springboot 版本
        //System.out.println("当前系统Springboot版本:"+SpringVersion.getVersion());
        SpringApplication.run(RdsPmsApplication.class, args);
        stopWatch.stop();
        System.out.println("瑞德PLM系统,启动成功>>>>>>耗时:"+stopWatch.getTotalTimeMillis()/1000+"s");
    }
}
